package com.hqyj.dao.TraderAndStorageDao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hqyj.pojo.Goods;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author rock
 * @since 2022-10-03
 */
@Component
@Mapper
public interface GoodsMapper extends BaseMapper<Goods> {
    List<Goods> queryAllByStorageType(String storageType);

    //根据名称查商品
    Goods selectGoodsByName(String goodsName);
    //更新修改
    int updateNumsGoodsByName(Goods goods);
}
